    <div class="list_category">
        <ul>
            <li><a href="<?php echo $this->baseUrl('admincp/tour/create'); ?>">Tạo tour mới</a></li>
            <li><a href="<?php echo $this->baseUrl('admincp/tourcategory'); ?>">Quản lý danh mục</a></li>
        </ul>
    </div>
</div>

<!-- Begin Content -->
<div class="section">
    <div class="heading_section">
        <span>Quản lý tour</span>
    </div>
    
    <div class="content">
    <p style="font-weight: bold; margin-left: 10px;">Tìm kiếm tour:</p>
        <form action="<?php echo $this->baseUrl('admincp/tour/search'); ?>" method="get">
            <table class="search-form">
                <tr>
                    <td class="td1"><?php echo $this->formLabel('name','Tiêu đề tour:'); ?></td>
                    <td class="td2"><?php echo $this->formText('name',$this->keyword['name'],array('class'=>'input')); ?></td>
                    <td class="td1"><?php echo $this->formLabel('status','Trạng thái:'); ?></td>
                    <td class="td2"><?php echo $this->formSelect('status',$this->keyword['status'],
                        array(
                            'class'=>'selectbox',
                        ),
                        array(
                            '0'=>'----------------- Tất cả ------------------',
                            '1'=>'Hiển thị',
                            '2'=>'Ẩn đi',
                        )); ?></td>
                    <td class="search-button">
                        <?php echo $this->formSubmit('submit','Tìm kiếm',array('class'=>'button')); ?>
                    </td>
                </tr>
            </table>
        </form>
    
        <form action="<?php echo $this->baseUrl('admincp/tour'); ?>" method="post">
        <p style="float: right; margin-right: 15px">Tổng số: <?php echo $this->total; ?> kết quả</p><br/>
        <table class="list-records">
            <tr class="list-header">
                <td style="width: 300px;">Tiêu đề tour</td>
                <td style="width: 80px;">Ảnh</td>
                <td style="width: 100px;">Giá tiền</td>
                <td style="width: 200px;">Danh mục</td>
                <td style="width: 100px;">Ngày bắt đầu</td>
                <td style="width: 70px;">Trạng thái</td>
                <td colspan="2" style="width: 80px;">Tùy chọn</td>
                <td style="width: 25px;"><?php echo $this->formCheckbox('check_all', null, array('id' => 'check_all', 'onClick' => 'checkAll()')); ?></td>
            </tr>
            <?php if(count($this->data) > 0) :
                $common = new Admincp_Model_Common();
                $category = new Admincp_Model_Tourcategory();
                foreach($this->data as $value) :
            ?>
            <tr>
                <td><?php echo $value['name']; ?></td>
                <td style="text-align: center;"><img width="40px" height="40px" src="<?php echo $this->baseUrl('/public/files/tour/').$value['image']; ?>" /></td>
                <td><?php echo $common->formatMoney($value['price']).'đ' ?></td>
                <td><?php echo $category->getCategoryNameById($value['category_id']); ?></td>
                <td><?php echo $value['start_date']; ?></td>
                <td style="text-align: center;">
                    <a href="<?php echo $this->baseUrl('admincp/tour/publish?id=').$value['id'].'&status='.$value['status']; ?>">
                    <?php if($value['status'] == '1') : ?>
                        <img src="<?php echo $this->baseUrl(''); ?>public/templates/admin/images/publish.png" />
                    <?php else : ?>
                        <img src="<?php echo $this->baseUrl(''); ?>public/templates/admin/images/unpublish.png" />
                    <?php endif; ?>
                    </a>
                </td>
                <td class="tools">
                    <a href="<?php echo $this->baseUrl('admincp/tour/edit?id=').$value['id']; ?>">
                        <img src="<?php echo $this->baseUrl(''); ?>public/templates/admin/images/edit.png" />
                    </a>
                </td>
                <td class="tools">
                    <a href="<?php echo $this->baseUrl('admincp/tour/delete?id=').$value['id']; ?>" onclick="return remove_alert()">
                        <img src="<?php echo $this->baseUrl(''); ?>public/templates/admin/images/remove.png" />
                    </a>
                </td>
                <td class="tools"><?php echo $this->formCheckbox('check[]', $value['id']); ?></td>
            </tr>
            <?php endforeach; ?>
            <?php else : ?>
            <tr>
                <td colspan="9" style="font-style: italic;">Không tìm thấy kết quả nào</td>
            </tr>
            <?php endif; ?>
        </table>
        
        <div class="list-bottom">
            <?php if(count($this->data) > 0) : ?>
            <div class="pagination">
                <?php
                    $currentUrl = '/?name='.$this->keyword['name'].'&status='.$this->keyword['status'].'&submit=Tìm+kiếm';
                    echo $this->paginationControl($this->data, 'Sliding', 'tour/pagination_search.phtml', array('currentUrl' => $currentUrl));
                ?>
            </div>
            <?php endif; ?>
            
            <div class="list-buttons">
                <?php echo $this->formSubmit('add','Tạo mới',array('class'=>'button')); ?>
                <?php echo $this->formSubmit('refresh','Làm mới',array('class'=>'button')); ?>
                <?php echo $this->formSubmit('delete','Xóa',array('class'=>'button','onClick'=>'return remove_alert()')); ?>
            </div>
        </div>
        </form>
    </div>
</div>
<!-- End Content -->